package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class Test extends Sprite
	{
		private var textField:TextField;
		public function Test()
		{
			textField = new TextField();
			textField.text = "as创建的文本框1";
			textField.addEventListener(MouseEvent.CLICK,onMouseClick);
			addChild(textField);
			var textField2:TextField = new TextField();
			textField2.text = "as创建的文本框2";
			textField2.y = 100;
			addChild(textField2);
			trace(getDefinitionByName("flash.text::TextField"));
		}
		private function onMouseClick(event:MouseEvent):void
		{
			x += 100;
			trace("在文本上按下了鼠标！");
			trace(getTimer());
		}
	}
}